package com.woniu.mealsService.mapper;

import com.woniu.mealsService.model.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 评价表 Mapper 接口
 * </p>
 *
 * @author jiang
 * @since 2024年12月09日
 */
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    Comment select(@Param("commentId") String commentId,@Param("storeId") String storeId,@Param("orderId") String orderId,@Param("userId") String userId);

    Integer removeOne(@Param("commentId") Integer commentId);

    List<Comment> calRate(@Param("list") List<String> orderIds);
}
